<template>
  <view class="webview">
    <web-view :src="url"></web-view>
  </view>
</template>

<script lang="ts" setup>
import { onLoad } from '@dcloudio/uni-app';
import { ref } from 'vue';
onLoad((options:any) => {
  if (options.url) {
    url.value = options.url;
  }
})
const url = ref('')
</script>

<style scoped lang="scss"></style>